

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author ronaldo
 */
public class mysql {

    public static Connection Conector;

    public mysql() {
        try {
            System.out.println("Conectando");
            Class.forName("com.mysql.jdbc.Driver");
            Conector = DriverManager.getConnection("jdbc:mysql://192.168.5.3:3306/mensaje", "remote", "23466");
            System.out.println("Conectado");
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(mysql.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(mysql.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    
    public static void main(String a[]){
        mysql m=new mysql();
    }
}
